<script>
    var upload_url = "{:url('admin/attachment/doAdd')}";
</script>